home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / CustomWriter GX 1.0.3 ƒ / CustomWriter GX.make < prev    next >
Encoding:
Text File  |  1995-06-20  |  4.9 KB  |  160 lines  |  [TEXT/MPS ]

  1. #
  2. #    FILENAME
  3. #        CustomWriter GX.make
  4. #
  5. #    DESCRIPTION
  6. #        Makefile for the CustomWriter GX driver.
  7. #
  8. #    COPYRIGHT
  9. #        Copyright © 1995 Apple Computer, Inc.
  10. #        All rights reserved.
  11. #    
  12. #    Modification history
  13. #        06/14/95 - Dave Hersey -    Version 1.0.3 to fix a bug in
  14. #                                    CustomBufferingAndIO.c when creating
  15. #                                    high-res PICTs, and to make the size
  16. #                                    of buffers more flexible.
  17. #
  18. #        05/26/95 - Dave Hersey -    Version 1.0.2 to add the new 'outp'
  19. #                                    desktop printer resource in NewApp.c.
  20. #
  21. #        05/03/95 - Dave Hersey -    Version 1.0.1 to fix some minor bugs in
  22. #                                    CustomBufferingAndIO.c.
  23. #
  24. #        01/14/95 - Dave Hersey -    Created from the shell of a hollowed-out
  25. #                                    ImageWriter driver.
  26. #
  27.  
  28. #========== Directories Containing Source and Object Files ==========
  29.  
  30. ObjDir                    =    :Objects:
  31. SrcDir                    =    
  32. DestDir                    =    
  33.  
  34. #========== Compiler Options ==========
  35.  
  36. AsmOptions                =    -case obj
  37. RezOptions                =    -i "{RIncludes}" -d SystemSevenOrLater=1
  38. COptions                =    -b3 -i "{CIncludes}"
  39. LinkOptions                =    -ra =resSysHeap,resPurgeable
  40.  
  41. DriverName         = "CustomWriter GX"
  42. DriverCreator     = 'cuWR'
  43. NewSegID        = 0
  44. OldSegID        = 1
  45.  
  46. # Compile and assemble statements
  47. {ObjDir}OldApp.c.o ƒƒ {SrcDir}OldApp.c {SrcDir}CommonDefines.h
  48.     Echo "{DriverName}: Compiling old application"
  49.     C {COptions} -o {ObjDir} {SrcDir}OldApp.c
  50.  
  51. {ObjDir}OldApp.a.o    ƒ     {SrcDir}OldApp.a
  52.     Echo "{DriverName}: Assembling old app jump table"
  53.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}OldApp.a -o {ObjDir}
  54.  
  55. {ObjDir}NewApp.c.o    ƒ {SrcDir}NewApp.c {SrcDir}CommonDefines.h
  56.     Echo "{DriverName}: Compiling new application"
  57.     C {COptions} -o {ObjDir} {SrcDir}NewApp.c
  58.  
  59. {ObjDir}NewApp.a.o    ƒ     {SrcDir}NewApp.a
  60.     Echo "{DriverName}: Assembling new app jump table"
  61.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}NewApp.a -o {ObjDir}
  62.  
  63. {ObjDir}ChooserSupport.c.o    ƒ {SrcDir}ChooserSupport.c {SrcDir}CommonDefines.h
  64.     Echo "{DriverName}: Compiling Chooser support"
  65.     C {COptions} -o {ObjDir} {SrcDir}ChooserSupport.c
  66.  
  67. {ObjDir}ChooserSupport.a.o    ƒ     {SrcDir}ChooserSupport.a
  68.     Echo "{DriverName}: Assembling Chooser support"
  69.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}ChooserSupport.a -o {ObjDir}
  70.  
  71. {ObjDir}CustomBufferingAndIO.c.o ƒ {SrcDir}CustomBufferingAndIO.c {SrcDir}CommonDefines.h
  72.     Echo "{DriverName}: Compiling custom buffering and I/O support"
  73.     C {COptions} -o {ObjDir} {SrcDir}CustomBufferingAndIO.c
  74.  
  75. {ObjDir}GlobalData.c.o    ƒ {SrcDir}GlobalData.c {SrcDir}CommonDefines.h
  76.     Echo "{DriverName}: Compiling global data support"
  77.     C {COptions} -o {ObjDir} {SrcDir}GlobalData.c
  78.  
  79.  
  80. # Link and Rez statements
  81. {DestDir}{DriverName} ƒƒ {SrcDir}OldApp.r {SrcDir}CommonDefines.h
  82.     Echo "{DriverName}: Rezzing old application"
  83.     Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}OldApp.r
  84.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  85.         
  86. {DestDir}{DriverName} ƒƒ {ObjDir}OldApp.c.o
  87.     Echo "{DriverName}: Linking old application"
  88.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  89.  
  90. {DestDir}{DriverName} ƒƒ {SrcDir}NewApp.r {SrcDir}CommonDefines.h
  91.     Echo "{DriverName}: Rezzing new application"
  92.     Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}NewApp.r
  93.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  94.  
  95. {DestDir}{DriverName} ƒƒ                         ∂
  96.     {ObjDir}NewApp.a.o                            ∂
  97.     {ObjDir}NewApp.c.o                            ∂
  98.     {ObjDir}CustomBufferingAndIO.c.o            ∂
  99.     {ObjDir}GlobalData.c.o
  100.     Echo "{DriverName}: linking new API"
  101.     Link                                        ∂
  102.         {ObjDir}NewApp.a.o                        ∂
  103.         {ObjDir}NewApp.c.o                        ∂
  104.         {ObjDir}CustomBufferingAndIO.c.o        ∂
  105.         {ObjDir}GlobalData.c.o                    ∂
  106.         ∂
  107.         "{Libraries}Interface.o"                 ∂
  108.         "{Libraries}RunTime.o"                     ∂
  109.         ∂
  110.         {LinkOptions}                            ∂
  111.         -rt 'pdvr'={NewSegID}                    ∂
  112.         -c {DriverCreator}                        ∂
  113.         -t 'pdvr'                                ∂
  114.         -sg {DriverName}                        ∂
  115.         -m SD_JumpTable                            ∂
  116.         ∂
  117.         -o {DestDir}{DriverName}
  118.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  119.  
  120. {DestDir}{DriverName} ƒƒ                         ∂
  121.     {ObjDir}OldApp.a.o                            ∂
  122.     {ObjDir}OldApp.c.o
  123.     Echo "{DriverName}: linking old API"
  124.     Link                                        ∂
  125.         {ObjDir}OldApp.a.o                        ∂
  126.         {ObjDir}OldApp.c.o                        ∂
  127.         ∂
  128.         {LinkOptions}                            ∂
  129.         -rt 'pdvr'={OldSegID}                    ∂
  130.         -c {DriverCreator}                        ∂
  131.         -t 'pdvr'                                ∂
  132.         -sg {DriverName}                        ∂
  133.         -m SD_JumpTable                            ∂
  134.         ∂
  135.         -o {DestDir}{DriverName}
  136.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  137.  
  138. {DestDir}{DriverName} ƒƒ {SrcDir}ChooserSupport.r {SrcDir}CommonDefines.h
  139.     Echo "{DriverName}: Rezzing Chooser resources"
  140.     Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}ChooserSupport.r
  141.     SetFile -a Bi -t 'pdvr' -c {DriverCreator} {DestDir}{DriverName}
  142.  
  143. {DestDir}{DriverName} ƒƒ                         ∂
  144.     {ObjDir}ChooserSupport.a.o                    ∂
  145.     {ObjDir}ChooserSupport.c.o
  146.     Echo "{DriverName}: Linking PACK"
  147.     Link                                        ∂
  148.         {ObjDir}ChooserSupport.a.o                ∂
  149.         {ObjDir}ChooserSupport.c.o                ∂
  150.         ∂
  151.         -rt PACK=-4096                            ∂
  152.         -sg PrintingPACK                        ∂
  153.         -m EntryPoint                            ∂
  154.         ∂
  155.         -o {Targ}
  156.  
  157. {DestDir}{DriverName}    ƒƒ {ObjDir}ChooserSupport.c.o
  158.     Echo "{DriverName}: Linking LDEF"
  159.     Link -w -rt LDEF=-4096 -m LDEF -sg LDEF -o {Targ} {ObjDir}ChooserSupport.c.o
  160.